<!-- BEGIN: main -->
</html>
<title>{title}</title>
<link href="style/style.css" rel="stylesheet" type="text/css">
<body leftmargin=0 topmargin=0 marginheight=0 marginwidth=0>

<!-- BEGIN: body -->


<table cellpadding=0 cellspacing= border=0  width=100% height=100% bgcolor="white" >
	
	<tr><td bgcolor="#FFFFFF" valign="top" class="regular">
	
	
		
		
		<!-- BEGIN: menu -->
		<td class="first" valign=top align=left width=20 bgcolor="#FFFFFF">
			
	<table cellpadding=1 cellspacing=1 border="0" >	
	
		<tr>
			<td class="regular">
		</br>
			<a href="login-admin.php?logout=ON" class="regular">Logout</a></td>
		</tr>
		<tr>	
			<td class="regular">_________________</td>
		</tr>
		
		<tr>
			<td class="regular"> <a href="edit-group.php" class="menu">Add/Edit Groups</a></td>
		</tr>
		
		<tr>
			<td class="regular"><a href="edit-picture.php" class="menu">Manage Content</a></td>
		</tr>	
		<tr>
			<td class="regular"><a href="edit-archive.php" class="menu">Manage Archive</a></td>
		</tr>	
	    <tr>
	    	<td class="regular"><a href="add-picture.php?option=add_picture" class="menu">Add Picture</a></td>
		</tr>
		<tr>
	    	<td class="regular"><a href="add-picture.php?option=add_banner" class="menu">Add Banner</a></td>
		</tr>
		<tr>
	    	<td class="regular"><a href="add-picture.php?option=add_link" class="menu">Add Link</a></td>
		</tr>
		<tr>
	    	<td class="regular"><a href="../newsfeeds/admin.php" class="menu">Manage Newsfeeds</a></td>
		</tr>
		<tr>
	    	<td class="regular"></td>
		</tr>
		<tr>
	    	<td class="regular"><a href="in_out_clicks.php" class="menu">In/Out clicks</a></td>
		</tr>
		<tr>
	    	<td class="regular">Clicked Links by</td>
		</tr>
		<tr>
	    	<td class="regular">&nbsp;&nbsp;- <a href="links-by-sites.php" class="menu">site</a></td>
		</tr>
		<tr>
	    	<td class="regular">&nbsp;&nbsp;- <a href="links-by-url.php" class="menu">url</a></td>
		</tr>
		
		
		
		<tr>
			<td class="regular">_________________</td>
		</tr>
					

	</table>


		</td>	
		<!-- END: menu -->
		
		<!-- BEGIN: edit_group -->
		
		<td  valign=top align=left>
			
		
			<TABLE cellspacing="0" cellpadding="0" bgcolor="white" border="0"  > 
				<TR><TD>
				</br>
		&nbsp;&nbsp;&nbsp;&nbsp;Add/Edit Group
				<p></p>
				<TABLE cellspacing="1" cellpadding="5px" border="1"  bgcolor="white" >
					<TR>
						<TD bgcolor="#ffffff" class="regular"><b>ID</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Group</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Edit</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Delete</b></TD>
					</TR>
					
					<!-- BEGIN: row-->
					
					<TR>
						<form action="{php_self}" method="GET">
						<input type="hidden" name="clicked" value="1">
						<input type="hidden" name="id_group" value="{id}">
						<TD bgcolor="#ffffff" class="regular">{id}</TD>
						<TD bgcolor="white" class="regular"><input type="text" name="name" value="{group}"  class="regular"></TD>
				 		<TD bgcolor="#ffffff" class="regular"> <input type="submit" name="submit" value="Edit" class="regular"><input type="hidden" name="clicked" value="1"</TD>
						<TD bgcolor="#ffffff" class="regular"> <a href="{php_self}?delete={id}" onClick="return confirm('Are you sure you want to delete this group ?')">Delete</a></TD>
						</form>
					</TR>
					<!-- END: row -->
				
							
				</TABLE>
				</br>
				<table cellspacing="0" cellpadding="5px" bgcolor="#aaaaaa" border="1">
					<tr>
						<form action="{php_self}" method="GET">
						<TD bgcolor="#ffffff" class="regular">Add Category:<input type="text" name="name" value=""  class="regular"> <input type="submit" name="submit" value="Add" class="regular"><input type="hidden" name="add_clicked" value="1"></TD>
						</form>
					</tr>		
				</table>
			
		<!-- BEGIN: error -->
	 
		<p class="error" align=left> {msg_error} </p>
		
		<!-- END: error -->	
		</td>
	  <!-- END: edit_group -->
	  	
	  
	  <!-- BEGIN: links_by_sites -->
		<td  valign=top align=left>
		
			<TABLE cellspacing="0" cellpadding="0" bgcolor="white" border="0"  > 
				<TR><TD class="regular">
						<B>Clicked links grouped by Site name</b><BR><BR>
				<TABLE cellspacing="1" cellpadding="5px" border="0"  bgcolor="#cccccc" >
					<TR>
						<TD bgcolor="#ffffff" class="regular"><b>#</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Site</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Position</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Clicks</b></TD>						
					</TR>
					
					<!-- BEGIN: row-->
					<TR>
						<TD bgcolor="#ffffff" class="regular">{counter}</TD>
						<TD bgcolor="#ffffff" class="regular"><a href="links-by-url.php?site={site}">{site}</a></TD>
						<TD bgcolor="#ffffff" class="regular">{position}</TD>
						<TD bgcolor="#ffffff" class="regular" align="right">{views}</TD>						
					</TR>
					<!-- END: row -->
				</table>
				</td></tr>
				<TR><TD class="regular">				
							<BR><BR> Total number of clicks : <b>{total_clicks}</b>. Out of these, <b>{side_clicks}</b> were side clicks and <B>{center_clicks}</b> were center clicks.
				</td></tr>

			</table>	
			
		</td>
	  <!-- END: links_by_sites -->
	  
	   <!-- BEGIN: links_by_url -->
		<td  valign=top align=left>
		
			<TABLE cellspacing="0" cellpadding="0" bgcolor="white" border="0"  > 
				<TR><TD class="regular">
						<B>Clicked links grouped by Site name</b><BR><BR>
				<TABLE cellspacing="1" cellpadding="5px" border="0"  bgcolor="#cccccc" >
					<TR>
						<TD bgcolor="#ffffff" class="regular"><b>#</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>URL</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Site</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Position</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Clicks</b></TD>						
					</TR>
					
					<!-- BEGIN: row-->
					<TR>
						<TD bgcolor="#ffffff" class="regular">{counter}</TD>
						<TD bgcolor="#ffffff" class="regular">{url}</TD>
						<TD bgcolor="#ffffff" class="regular">{site}</TD>						
						<TD bgcolor="#ffffff" class="regular">{position}</TD>
						<TD bgcolor="#ffffff" class="regular" align="right">{views}</TD>						
					</TR>
					<!-- END: row -->
				</table>
				</td></tr>
				<TR><TD class="regular">				
							<BR><BR> Total number of clicks : <b>{total_clicks}</b>. Out of these, <b>{side_clicks}</b> were side clicks and <B>{center_clicks}</b> were center clicks.<BR>There were <B>{sum_links}</b> independet links clicked so far ( a side link is considered different from a center link ) </br>
				</td></tr>

			</table>	
			
		</td>
	  <!-- END: links_by_url -->
	
	<!-- BEGIN: in_links -->
		<td  valign=top align=left>
		
			<TABLE cellspacing="0" cellpadding="0" bgcolor="white" border="0"  > 
				
				<TR><TD class="regular">
									<B>Clicked links grouped by Site name</b>
				</td></tr>
									
				<TR><TD><a href="in_out_clicks.php?reset_counter=1" class="regular">Reset new counters</a><font size="1">(last time reseted on: {reset_time})</font>
				</td></tr>
						
			</table>
						
				<TABLE cellspacing="1" cellpadding="5px" border="0"  bgcolor="#cccccc" >
					<TR>
						<TD bgcolor="#ffffff" class="regular"><b><a href="in_out_clicks.php?sort_url=1">SITE</a></b></TD>
						<TD bgcolor="#ffffff" class="regular"><b><a href="in_out_clicks.php?sort_url=2">IN CLICKS</a></b></TD>
						<TD bgcolor="#ffffff" class="regular"><b><a href="in_out_clicks.php?sort_url=3">OUT CLICKS</a></b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>IN/OUT RATIO</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b><a href="in_out_clicks.php?sort_url=4">NEW IN CLICKS</a></b></TD>
						<TD bgcolor="#ffffff" class="regular"><b><a href="in_out_clicks.php?sort_url=5">NEW OUT CLICKS</a></b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>NEW IN/OUT RATIO</b></TD>																	
					</TR>
					
					<!-- BEGIN: row-->
					<TR>
						<TD bgcolor="#ffffff" class="regular"><a href="http://{site}" target="_blank">{site}</a></TD>
						<TD bgcolor="#ffffff" class="regular">{in}</TD>
						<TD bgcolor="#ffffff" class="regular">{out}</TD>						
						<TD bgcolor="#ffffff" class="regular">{ratio}</TD>
						<TD bgcolor="#ffffff" class="regular">{new_in}</TD>
						<TD bgcolor="#ffffff" class="regular">{new_out}</TD>						
						<TD bgcolor="#ffffff" class="regular">{new_ratio}</TD>												
					</TR>
					<!-- END: row -->
				</table>
			
		</td>
	  <!-- END: in_links -->	
	  
	  
	  <!-- BEGIN: public_stats -->
		<td  valign=top align=left>
		
			<TABLE cellspacing="0" cellpadding="0" bgcolor="white" border="0"  > 
				<TR>
				<TABLE cellspacing="1" cellpadding="5px" border="0"  bgcolor="#cccccc" >
					<TR>
						<TD bgcolor="#ffffff" class="regular"><b>SITE</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>IN CLICKS</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>OUT CLICKS</b></TD>
						<TD bgcolor="#ffffff" class="regular" style="background-color:#EEEEEE;"><b>IN/OUT RATIO</TD>						
						<TD bgcolor="#ffffff" class="regular"><b>NEW IN CLICKS</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>NEW OUT CLICKS</b></TD>
						<TD bgcolor="#ffffff" class="regular" style="background-color:#EEEEEE;"><b>NEW IN/OUT RATIO</b></TD>	
																			
					</TR>
					
					<!-- BEGIN: row-->
					<TR>
						<TD bgcolor="#ffffff" class="regular"><a href="http://{site}">{site}</a></TD>
						<TD bgcolor="#ffffff" class="regular">{in}</TD>
						<TD bgcolor="#ffffff" class="regular">{out}</TD>						
						<TD bgcolor="#ffffff" class="regular" style="background-color:#EEEEEE;">{ratio}</TD> 						
						<TD bgcolor="#ffffff" class="regular">{new_in}</TD>
						<TD bgcolor="#ffffff" class="regular">{new_out}</TD>						
						<TD bgcolor="#ffffff" class="regular" style="background-color:#EEEEEE;">{new_ratio}</TD>												
					</TR>
					<!-- END: row -->
				</table>
				</td></tr>				

			</table>	
			
		</td>
	  <!-- END: public_stats -->	  
	
	   
	<!-- BEGIN: edit_picture  -->	
	<td valign=top align=left>
	 	
	 		<p></p>
		</br>
		&nbsp;&nbsp;&nbsp;&nbsp;{edit_picture}		
	 	<!-- BEGIN: error -->
			<p class="error" align=left> {msg_error} </p>
		<!-- END: error -->
				<form name="form1" action="{php_self}" method="POST">
				<p><font size=2px >Number of entries to display: <input type="text" name="entries" value="{entries}"  class="regular"></font><input type="submit" name="submit1" value="Change" class="regular"></p>
				</form>
				<TABLE cellspacing="1" cellpadding="5px" border="1">
					<tr>	
						<TD bgcolor="#ffffff" class="regular"><b>ID</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Date</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Type</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Title</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>URL</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Description</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Picture Title</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Edit</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Up/</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Down</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>First Page?</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Validate</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Delete</b></TD>
						<TD bgcolor="#ffffff" class="regular"><b>Bottom</b></TD>
					</tr>
					
					<!-- BEGIN: row -->
					
					<tr background="green">
						
						<form action="{php_self}" method="GET">
						<input type="hidden" name="clicked" value="1">
						<input type="hidden" name="id" value="{id}">
						<input type="hidden" name="type" value="{type}">
						<input type="hidden" name="old_title" value="{old_title}">
						<TD class="{picture_style}">{id}</TD>
						<TD class="{picture_style}">{date}</TD>
						<TD class="{picture_style}"">{type}</TD>
						<TD class="{picture_style}"><input type="text" name="picture_title" value="{picture_title}"  class="regular"></TD>
						<TD class="{picture_style}"><input type="text" name="url" value="{url}"  class="regular"></TD>
						<TD class="{picture_style}"><input type="text" name="description" maxlength="1000" value="{description}"  class="regular"></TD>
						<TD class="{picture_style}"><input type="text" name="title" value="{title}"  class="regular"></TD>
						<TD class="{picture_style}"><input type="submit" name="submit" value="Edit" class="regular"></TD>
						<TD class="{picture_style}"><a href="{php_self}?position=up&id={id}">Up</a></TD>
						<TD class="{picture_style}"><a href="{php_self}?position=down&id={id}">Down</a></TD>
						<TD class="{picture_style}"align="center"><a href="{php_self}?first_page={first_page_value}&id={id}">{first_page}</a></TD>
						<TD class="{picture_style}"><a href="{php_self}?validate={validate_value}&id={id}">{validate}</a></TD>
						<TD class="{picture_style}"><a href="{php_self}?delete={id}&title={title}" onClick="return confirm('Are you sure you want to delete this picture ?')">Delete</a></TD>
						<TD class="{picture_style}"><a href="{php_self}?archive={id}">Bottom</a></TD>
						</form>
					</tr>
				<!-- END: row -->
				</TABLE>



	</td> 
	<!-- END: edit_picture -->
	  


	<!-- BEGIN: add_picture -->
	<td valign=top align=left  >
	</br>
		&nbsp;&nbsp;&nbsp;&nbsp;{item}
		<p></p>
	 	<form action="add-picture.php" method="post" enctype="multipart/form-data" name="form1">
	 	<TABLE cellspacing="0" cellpadding="5px" border="0" bgcolor="white">
			<TR>
	 			<td bgcolor="#ffffff" class="regular">Date</td>
	 			<td bgcolor="#ffffff" class="regular" nowrap ><input type="text" name="date" value="{data2}"><font size="1px">&nbsp year-month-day </td>
	 			<td>&nbsp</td>
	 			
	 		</tr>	
	 		
	 		<tr>
	 			<td bgcolor="#ffffff" class="regular">Title:</td>
	 			<td bgcolor="#ffffff" class="regular" nowrap ><input type="text" style="width:300px" maxlength="500" name="picture_title" value="{picture_title}"  class="regular"></td>
	 			<td bgcolor="#ffffff" class="regular"><font size="1px">eg: &nbsp Eva Henger, See Through Tit Shot! Upskirt Panty Shot! Going Straight? Not Here On Taxi Driver?</font><td>
	 		</tr>	
	 		
	 		<!-- BEGIN: url -->
	 		<tr>
	 			<td bgcolor="#ffffff" class="regular" nowrap>URL: http://</td>
	 			<td bgcolor="#ffffff" class="regular"  ><input type="text" style="width:300px" maxlength="500" name="url" value="{url}"  class="regular"></td>
	 			<td bgcolor="#ffffff" class="regular"><font size="1px">&nbsp eg:&nbsp  http://www.album.com/</font></td>	
	 			
	 		</tr>	
	 		<!-- END: url -->
	 		
	 		<!-- BEGIN: picture_title -->	
	 		<tr>
	 			<td bgcolor="#ffffff" class="regular">Picture name </br> on disk:</td>
	 			<td bgcolor="#ffffff" class="regular"  ><input type="text" style="width:300px" maxlength="500" name="title" value="{title}"  class="regular"></td>
	 			<td bgcolor="#ffffff" class="regular"><font size="1px">&nbsp eg:&nbsp  Eliza_Dushu_Pussy_Shot . Do NOT add ".jpg" at the end of the file, this will be done automatically. </font></td>	
	 		</tr>
	 		<!-- END: picture_title -->	
	 		
	 		<!-- BEGIN: description -->
	 		<tr>
	 			<td bgcolor="#ffffff" class="regular">Description:</td>
	 			<td bgcolor="#ffffff" class="regular"><textarea name="description" style="width:300px" rows="6" class="regular" wrap="soft">{description}</textarea> </td>
	 			<td bgcolor="#ffffff" class="regular"><font size="1px">&nbsp;eg: &nbsp At Eliza Dushku’s premiere for her newest production ‘Dog sees God’ she premiered a bit more than she bargained for... </font></td>	
	 		</tr>	
	 		<!-- END: description -->
	 		
	 		<!-- BEGIN: group	-->
	 		<tr>
	 			<td bgcolor="#ffffff" class="regular">Group:</td>
	 	    	<td bgcolor="#ffffff" class="regular"><select name="category[]" size="3" multiple>{group}</select></td>
	 	  		<td><font size="1px">&nbsp;eg:  Topless. </font></td>		
	 	    </tr>
	 	    <!-- END: group	-->
	 	    
	 	    <!-- BEGIN: input_file -->
	 	    <tr>	
	 	    	<td bgcolor="#ffffff" class="regular">File:</td>	
	 	    	<td bgcolor="#ffffff" class="regular"><input type="hidden" name="MAX_FILE_SIZE" value="1000000"><input style="width:300px" type="file" name="picture"> </td>	 	   
	 	    	<td><font size="1px">&nbsp;eg: &nbsp /picture/picture.jpg </font></td>			 		
	 	    </tr>
	 	    <!-- END: input_file -->
	 	    
	 		<tr>
	 			<td>&nbsp</td>
	 			<td bgcolor="#ffffff" class="regular"><input type="hidden" name="option" value="{option}"></br><input type="submit" name="submit" value="        Submit        "></td>
	 	
	 	 </table>   	
		</form>
		
	<!-- BEGIN: error -->
			<p class="error" align=left> {msg_error} </p>	
	<!-- END: error -->
	
	
	
	<!-- END: add_picture -->
	
	
	
	<!-- BEGIN: modify_picture -->
	
	<td valign=top align=left class="1" >	
		</br>
		&nbsp;&nbsp;&nbsp;&nbsp;Modify Picture
		<form action="add-picture.php" method="get"  name="form4">
		<TABLE cellspacing="0" cellpadding="5px" border="0" bgcolor="white">
			<tr>
				<td bgcolor="#ffffff" class="regular"><img src="../pictures/{title}.jpg">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
				<!-- BEGIN: thumb -->
				<img src="../pictures/{thumb}.jpg"></td>
				<!-- END: thumb -->
				
				
			</tr>			
			<tr>
			<td bgcolor="#ffffff" class="regular">Width:{picture_width}px</br>Height: {height}px</br> File Size: {file_size}&nbsp; Kb </td>
			</tr>
			<tr>
				</br>
				<td bgcolor="#ffffff" class="regular">Width:<input type="text" size="10" maxlength="50" name="width" value="{width}"  class="regular">px &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jpeg Quality<input type="text" size="10" maxlength="50" name="jpeg_quality" value="{jpeg_quality}"  class="regular"> <input type="hidden" name="modify_clicked" value="1"><input type="hidden" name="title" value="{title}">&nbsp;&nbsp; <input type="submit" name="xx" value="Resize"></td>
		   </tr>
		   <tr>
		   	
		   	</tr>	
		 		<td bgcolor="#ffffff" class="regular"><input type="submit" name="rotatel" value=" <-- Roatate Left ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="rotater" value=" Rotate Right -->"></td>
		  <tr>
		  	<td bgcolor="#ffffff" class="regular"></br></br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="apply" value="Add Picture">&nbsp;&nbsp;&nbsp;<input type="submit" name="cancel" value="Load original pic">&nbsp;&nbsp;&nbsp;<input type="submit" name="undo" value="   Cancel  "></td>
		    
		  </tr>
			
		</table>		
		</form>
	</td>
	<!-- END: modify_picture -->
	
	
			<!-- BEGIN: menu_logged -->	
			<a href="login-admin.php?logout=ON" class="regular">Logout</a><br>
			<a href="" class="regular">Different Links</a><br>
			<!-- END: menu_logged -->
			
			<!-- BEGIN: menu_not_logged -->
			Admin area, please log in.
			<!-- END: menu__not_logged -->
	
	</td><td bgcolor="#FFFFFF" valign="top" class="regular">


		<!-- BEGIN: login -->
		<td valign=top align=left class="1" >					
				<br>sdfsdfsdfsdfsdf<br>
			<form action="{php_self}" method="POST">
				<TABLE cellspacing="0" cellpadding="0" bgcolor="#cccccc">
					<TR><TD>
					<TABLE cellspacing="1" cellpadding="2" border="0" bgcolor="">
						<TR>
							<TD bgcolor="#ffffff" class="regular">Login Name</TD>
							<TD bgcolor="#ffffff" class="regular"><input type="text" name="login_name" value="admin" class="regular"></TD>
						</TR>
						<TR>
							<TD bgcolor="#ffffff" class="regular">Password</TD>
							<TD bgcolor="#ffffff" class="regular"><input type="password" name="password" value="" class="regular"></TD>
						</TR>
							<input type="hidden" name="clicked" value="1">
						<TR>
							<TD bgcolor="#ffffff" class="regular" colspan="2"><input type="submit" name="submit" value="Submit" class="regular" style="width:100%"></TD>
						</TR>
					</TABLE>
					</TD></TR>
				</TABLE>
			</form>
		</td>
			<!-- END: login -->
		
		
		<!-- BEGIN: default -->
			Please choose one option.
		<!-- END: default -->
	
	
	
	
	</td>
</tr>

</table> 	
<!-- END: body -->

</body>
</html>	
<!-- END: main -->
